﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SPEC" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BuildMgmt1UserControl.ascx.cs"
    Inherits="com.stifel.ServerBuildMgmt.BuildMgmt1.BuildMgmt1UserControl" %>
<%--START: CSS and JS--%>
<link type="text/css" rel="Stylesheet" media="all" href="/sites/coresystems/_layouts/com.stifel.ServerBuildMgmt/stylesheets/ServerBuildMgmt.css" />
<script language="javascript" type="text/javascript" src="/sites/coresystems/_layouts/com.stifel.ServerBuildMgmt/scripts/jquery-1.4.1.min.js"></script>
<script language="javascript" type="text/javascript" src="/sites/coresystems/_layouts/com.stifel.ServerBuildMgmt/scripts/jquery-base64encoding.js"></script>
<script language="javascript" type="text/javascript" src="/sites/coresystems/_layouts/com.stifel.ServerBuildMgmt/scripts/jquery-custom.js"></script>
<script language="javascript" type="text/javascript" src="/sites/coresystems/_layouts/com.stifel.ServerBuildMgmt/scripts/js-custom.js"></script>
<script language="javascript" type="text/javascript">
    function confirmation() {
        var c = confirm(" Click Ok To Delete The Server ");
        if (c == true) {
            return (true);
        }
        else {
            return (false);
        }
    }
    // <![CDATA[
    // ]]>
</script>
<%--END: CSS and JS--%>
<%--START: http://msdn.microsoft.com/en-us/library/ee231545.aspx--%>
<style type="text/css">
    .style2
    {
        width: 115px;
        height: 26px;
    }
    .style3
    {
        width: 166px;
        height: 26px;
    }
    .style4
    {
        width: 60px;
        height: 26px;
    }
    .style5
    {
        width: 81px;
        height: 26px;
    }
    .style7
    {
        height: 25px;
    }
    .style11
    {
        width: 400px;
        color:Red;
        vertical-align:middle;
    }
    .style11WithoutWidth
    {
        color:Red;
        vertical-align:middle;
    }
    .style12
    {
        width:5px;
        vertical-align:top;
        font-size:smaller;
        color:Red;    
    }
    .data
    {}
    .style15
    {
        width: 133px;
    }
    .style17
    {
        width: 152px;
    }
    .style22
    {
        width: 157px;
    }
    .style28
    {
        width: 400px;
        color:Red;
        vertical-align:top;    
    }
    .style31
    {
        width: 130px;
    }
    .style32
    {
        width: 80px;
    }
    .style33
    {
        width: 65px;
    }
</style>
<asp:HiddenField ID="SharePoint_Project_FileNameWithoutExtension" Value="$SharePoint.Project.FileNameWithoutExtension$"
    runat="server" />
<asp:HiddenField ID="SharePoint_Project_AssemblyFullName" Value="$SharePoint.Project.AssemblyFullName$"
    runat="server" />
<asp:HiddenField ID="SharePoint_ProjectItem_Name" Value="$SharePoint.ProjectItem.Name$"
    runat="server" />
<%--END: http://msdn.microsoft.com/en-us/library/ee231545.aspx--%>
<%-- Code For Adding A Button which shows the other panel when clicked START--%>
<div id="uiDivServerMgmt" runat="server">
    <asp:UpdatePanel ID="uiAjax" runat="server">
        <ContentTemplate>
            <asp:HiddenField ID="uiObjAddPanel" runat="server" />
            <asp:HiddenField ID="isChanged" runat="server" />
            <asp:Panel ID="uiAddServerRequest" runat="server">
            <table width="100%">
            <tr>
            <td align="left" style=" width:50%">
            <asp:Button ID="uiBtnAddServerRequest" runat="server" Text="Add Server Request" OnClick="uiBtnAddServerRequest_Click" />
            </td>
            <td align="right">
            </td>
            </tr>
            <tr>
            <td>
            </td>
            <td align="right">
            <asp:Panel ID="uiPnlCurrentRequest" runat="server" Height="30px">
<table width="100%" style=" height:30px"><tr style=" height:30px"><td align="right" style=" height:30px">
    <h3><asp:Literal ID="uiLitRequest" runat="server" Text="Request : "></asp:Literal><asp:Literal
        ID="uiLitValRequest" runat="server"></asp:Literal></h3></td></tr></table>
</asp:Panel>
            </td>
            </tr>
            </table>
            <br />
            <div id="ScorllList" style="border-style: solid; border-width: thin; overflow-y: scroll;
                height: 350px; width: 100%">
                <asp:Repeater ID="myRepeater" runat="server" OnItemCommand="onItemCommand">
                    <HeaderTemplate>
                        <table border="0" cellpadding="2" cellspacing="0" style="width: 100%">
                            <thead>
                                <tr>
                                    <td style="width: 8%">
                                    </td>
                                    <td style="width: 2%">
                                    </td>
                                    <td style="width: 90%">
                                    </td>
                                </tr>
                            </thead>
                            <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td style="width: 8%; vertical-align: top;">
                                <asp:ImageButton ID="editButton" runat="server" ImageUrl="~/_layouts/com.stifel.ServerBuildMgmt/images/editg20x20.png"
                                    CommandName="Edit" CommandArgument='<%#DataBinder.Eval( Container.DataItem, "value" )%>' />
                                <asp:ImageButton ID="copyButton" runat="server" ImageUrl="~/_layouts/com.stifel.ServerBuildMgmt/images/copyblue20x20.png"
                                    CommandName="Copy" CommandArgument='<%#DataBinder.Eval( Container.DataItem, "value" )%>' />
                                <asp:ImageButton ID="deleteButton" runat="server" ImageUrl="~/_layouts/com.stifel.ServerBuildMgmt/images/redx20x20.png"
                                    CommandName="Delete" CommandArgument='<%#DataBinder.Eval( Container.DataItem, "value" )%>'
                                    OnClientClick="return confirmation()" />
                            </td>
                            <td style="width:2%; color:Red; vertical-align:top;">
                                <asp:Label ID="uiSummaryFlag" runat="server" Font-Bold="true" Font-Size="Larger"></asp:Label>
                            </td>
                            <td style="width: 90%">
                                <%# DataBinder.Eval( Container.DataItem, "summary" )%>
                            </td>
                            <asp:HiddenField ID="valuePart" runat="server" Value='<%# DataBinder.Eval( Container.DataItem, "value" )%>' />
                        </tr>
                        <tr>
                            <td colspan="3">
                                <hr />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </tbody> </table>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <table width="100%">
                <tr>
                <td align="left" style="width:50%; vertical-align:bottom;">
                    <asp:Literal ID="uiLitNotification" runat="server"></asp:Literal>
                </td>
                    <td align="right">
                        <asp:Button ID="uiBtnSubmit" runat="server" Text="Submit" Width="63px" OnClick="uiBtnSubmit_Click" />
                        &nbsp;
                        <asp:Button ID="uiBtnSave" runat="server" Text="Save" Width="63px" OnClick="uiBtnSave_Click" />
                                                &nbsp;
                        <asp:Button ID="uiBtnCancel" runat="server" Text="Cancel" Width="63px" 
                            onclick="uiBtnCancel_Click"/>
                    </td>
                </tr>
            </table>
            </asp:Panel>
            <asp:Panel ID="uiUpdate" runat="server">
            <%-- Code For Adding A Button which shows the other panel when clicked END--%>
                <asp:HiddenField ID="uiHiddenLoadC" runat="server" />
                <asp:HiddenField ID="uiHiddenLoadCForEditAndCopy" runat="server" />
                <asp:HiddenField ID="uiHiddenEditOrCopyModeFlag" runat="server" />
                <asp:HiddenField ID="uiHiddenCurrentRequestValues" runat="server" />
            <asp:Panel ID="uiPnlCurrentRequestOnEditORCopy" runat="server" Height="30px">
            <table width="100%" style=" height:30px"><tr style=" height:30px"><td align="right" style=" height:30px">
             <h3><asp:Literal ID="uiLitRequestForEditOrCopy" runat="server" Text="Request : "></asp:Literal><asp:Literal
        ID="uLitValRequestForEditOrCopy" runat="server"></asp:Literal></h3></td></tr></table>
</asp:Panel>
            <div id="uiNavigation" runat="server">
                <asp:Button ID="uiBtnServerBasics" Text="Basics" runat="server" CommandArgument="uiServerBasics"
                    OnClick="uiNavigationTab_Click" ToolTip="Basic Server Information" CssClass="t" />
                <asp:Button ID="uiBtnHardDrives" Text="Hard Drives" runat="server" CommandArgument="uiHardDrives"
                    OnClick="uiNavigationTab_Click" CssClass="t" />
                <asp:Button ID="uiBtnNetworkConnections" Text="Network Connections" runat="server"
                    CommandArgument="uiNetworkConnections" OnClick="uiNavigationTab_Click" CssClass="t" />
                <asp:Button ID="uiBtnDisasterRecovery" Text="Disaster Recovery" runat="server" CommandArgument="uiDisasterRecovery"
                    OnClick="uiNavigationTab_Click" CssClass="t" />
                <asp:Button ID="uiBtnServerRoles" Text="Server Roles" runat="server" CommandArgument="uiServerRoles"
                    OnClick="uiNavigationTab_Click" CssClass="t" />
                <asp:Button ID="uiBtnAccess" Text="Access" runat="server" CommandArgument="uiAccess"
                    OnClick="uiNavigationTab_Click" CssClass="t" />
                <asp:Button ID="uiBtnBackup" Text="Backup" runat="server" CommandArgument="uiBackup"
                    OnClick="uiNavigationTab_Click" CssClass="t" />
                <asp:Button ID="uiBtnNotes" Text="Notes" runat="server" CommandArgument="uiNotes"
                    OnClick="uiNavigationTab_Click" CssClass="t" />
            </div>
            <asp:MultiView ID="uiView" ActiveViewIndex="0" runat="server">
                <asp:View runat="server" ID="uiServerBasics">
                    <%-- Server Name --%>
                    <asp:Panel ID="uiPnlServerBasics" runat="server" GroupingText="Basics" CssClass="label">
                        <table width="100%" height="200">
                            <tr>
                                <td>
                                    <table width="1020px">
                                        <tr>
                                            <td class="style15">
                                                <asp:Literal ID="uiLblServerName" runat="server" Text="Server Name:"></asp:Literal>
                                            </td>
                                            <td align="right" class="style12">
                                                <asp:Label ID="Label1" runat="server" Text="*"></asp:Label></td>
                                            <td class="data" width="165px" align="left">
                                                <asp:TextBox ID="uiValServerName" runat="server" Style="width: 97%"></asp:TextBox>
                                            </td>
                                            <td class="style11" colspan="5">
                                                &nbsp;<asp:Label ID="uiLblServerNameValidationMsg" runat="server" Font-Size="Smaller"></asp:Label><asp:Label ID="uiLblServerNameValidationMsg1" runat="server" Font-Size="Smaller"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td class="style15">
                                                <asp:Literal ID="uiServerDescription" runat="server" Text="Description:"></asp:Literal>
                                            </td>
                                            <td align="right" class="style12"></td>
                                            <td class="data" width="165px" align="left">
                                                <asp:TextBox ID="uiValSeverDescription" runat="server" Style="width: 97%"></asp:TextBox>
                                            </td>
                                            <td class="style33"></td>
                                            <td class="style31"></td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                        <%-- Operating System --%>
                                        <tr>
                                            <td class="style15">
                                                <asp:Literal ID="uiLblOperatingSystem" Text="Operating System:" runat="server" />
                                            </td>
                                            <td style="width:5px"></td>
                                            <td width="165px" align="right">
                                                <asp:DropDownList ID="uiValOperatingSystem" runat="server" Width="100%" AutoPostBack="true"
                                                    OnTextChanged="uiValOperatingSystem_TextChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="right" ><asp:Label ID="uiLblOSReason" runat="server">&nbsp;&nbsp;Reason : </asp:Label></td>
                                            <td rowspan="2" colspan="3">
                                            <asp:TextBox ID="uiTbReasonOs" runat="server" TextMode="MultiLine" Rows="4" 
                                                    Style="margin-top: 0px" Width="100%" />
                                            </td>
                                              <td class="style11WithoutWidth" width="175px">
                                                &nbsp;<asp:Label ID="uiLblOsReasonErrorMsg" runat="server" Font-Size="Smaller"></asp:Label></td>
                                        </tr>
                                        <%-- Memory --%>
                                        <tr>
                                            <td class="style15">
                                                <asp:Literal ID="uiLblMemory" runat="server" Text="Memory
                        (GB):"></asp:Literal>
                                            </td>
                                            <td style="width:5px"></td>
                                            <td width="165px">
                                                <asp:DropDownList ID="uiValMemory" runat="server" Width="100%" AutoPostBack="true"
                                                    OnTextChanged="uiValMemory_TextChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                        <%-- CPUs --%>
                                        <tr>
                                            <td class="style15">
                                                <asp:Literal ID="uiLblCPUs" runat="server" Text="CPUs:"></asp:Literal>
                                            </td>
                                            <td style="width:5px"></td>
                                            <td width="165px">
                                                <asp:DropDownList ID="uiValCPUs" runat="server" Width="100%" AutoPostBack="true"
                                                    OnTextChanged="uiValCPUs_TextChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="style33"></td>
                                            <td class="style31"></td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                        <%-- Location --%>
                                        <tr>
                                            <td class="style15">
                                                <asp:Literal ID="uiLitLocation" Text="Location:" runat="server" />
                                            </td>
                                            <td style="width:5px"></td>
                                            <td width="165px" align="right">
                                                <asp:DropDownList ID="uiDdlLocation" runat="server" Width="100%" 
                                                    AutoPostBack="true" onselectedindexchanged="uiDdlLocation_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="style33"></td>
                                            <td class="style31"></td>
                                           <td></td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                        <%-- Install updates? --%>
                                        </table>
                                        <table>
                                        <tr>
                                            <td class="label left" style=" width:420px">
                                                <asp:CheckBox ID="uiValInstallUpdates" runat="server" Text="Ok to install all of Windows Updates and Service Packs?"
                                                    TextAlign="Left" />
                                            </td>
                                        </tr>
                                        </table>
                                        
                                        <%-- Server replacement --%>
                                        <table>
                                        <tr>
                                            <td class="label left">
                                                <asp:CheckBox ID="uiValReplaceExisting" runat="server" Text="Is this server replacing an existing server?"
                                                    TextAlign="Left" OnCheckedChanged="uiValReplaceExisting_CheckedChanged" AutoPostBack="true"  />
                                            </td>
                                            <td>
                                            <table>
                                            <tr>
                                            <td>
                                                                <asp:Literal ID="uiLblNameExistingServer" Text="&nbsp;&nbsp;Name of existing server:"
                                                                    runat="server" />
                                                            </td>
                                                 <td align="right" class="style12">
                                                <asp:Label ID="uiReplaceServerFlag" runat="server" Text="*"></asp:Label></td>
                                                            <td class="style17">
                                                                <asp:TextBox ID="uiValNameExistingServer" runat="server" CssClass="data" 
                                                                    Width="99%" />
                                                            </td>
                                            <td class="style11">
                                                &nbsp;<asp:Label ID="uiReplaceServerValidationMsg" runat="server" Font-Size="Smaller"></asp:Label></td>
                                        </tr>
                                    </table>
                                            </td>
                                            </tr>
                                            </table>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </asp:View>
                <asp:View runat="server" ID="uiHardDrives">
                    <%-- Hard Drives --%>
                    <asp:Panel ID="uiPnlHardDrives" runat="server" GroupingText="Hard Drives" CssClass="label">
                        <table width="100%" height="200">
                            <tr>
                                <td valign="top">
                                    <br />
                                    <asp:Repeater ID="repeaterHardDrive" runat="server" OnItemDataBound="repeaterHardDrive_ItemDataBound">
                                        <HeaderTemplate>
                                            <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
                                                <thead>
                                        <tr>
                                            <td style="width:50px" class="label" align="left">
                                                <asp:Literal ID="litDrive" runat="server" Text="Name"></asp:Literal>
                                            </td>
                                            <td style=" width:100px" class="label" align="left">
                                                <asp:Literal ID="litName" runat="server" Text="Label"></asp:Literal>
                                            </td>
                                            <td style=" width:65px" class="label" align="left">
                                                <asp:Literal ID="litSize" runat="server" Text="Size"></asp:Literal>
                                            </td>
                                            <td style=" width:25px">
                                            </td>
                                            <td style="width:225px">
                                            </td>
                                            <td style="width:250px">
                                            </td>
                                            <td></td>
                                        </tr>
                                                    <tr>
                                                        <td style="width:50px" class="label" align="left">
                                                            <asp:Literal ID="DefaultDrive" runat="server"></asp:Literal>
                                                        </td>
                                                        <td style="width:100px" class="label" align="left">
                                                            <asp:Literal ID="DefaultName" runat="server"></asp:Literal>
                                                        </td>
                                                        <td style="width:65px" class="label" align="left">
                                                            <asp:Literal ID="DefaultSize" runat="server"></asp:Literal>
                                                        </td>
                                                        <td style=" width:25px">
                                                        </td>
                                            <td style="width:225px">
                                            </td>
                                            <td style="width:250px">
                                            </td>
                                                        <td></td>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                           <td style="width:50px">
                                           <asp:DropDownList ID="uidropDownDrive" runat="server" AutoPostBack="true" Width="100%"
                                                        OnTextChanged="uidropDownDrive_TextChanged">
                                                    </asp:DropDownList>
                                                </td>
                                                <td style="width:100px">
                                                    <asp:TextBox ID="Name" runat="server" Text='<%# DataBinder.Eval( Container.DataItem, "Name" )%>'></asp:TextBox>
                                                </td>
                                                <td style="width:65px">
                                                    <asp:TextBox ID="uiTbHardDriveSize" runat="server" Width="65px"></asp:TextBox></td>
                                                    <td style=" width:25px">
                                                        <asp:Label ID="uiHardDrivesGB" runat="server" Text="GB" Font-Size="Smaller"></asp:Label>
                                                    </td>
<%--                                                    <asp:DropDownList ID="uidropDownSize" runat="server" AutoPostBack="true" Width="100%"
                                                        OnTextChanged="uidropDownSize_TextChanged">
                                                    </asp:DropDownList>--%>
                                            <td style="width:225px">
                                            <asp:RadioButton ID="uiRbHardDriveDependent" runat="server" GroupName="HardDriveDependentIndependent" Text="Dependent(Included in snapshots)" Font-Size="Smaller" />
                                            </td>
                                            <td style="width:250px">
                                                <asp:RadioButton ID="uiRbHardDriveIndependent" runat="server" GroupName="HardDriveDependentIndependent" Text="Independent(Not included in snapshots)" Font-Size="Smaller"/>
                                            </td>
                                                <td style="color:Red;vertical-align:middle;" >&nbsp;<asp:Label ID="uiHardDriveValidationMsg" runat="server" Font-Size="Smaller"></asp:Label></td>
                                                <asp:HiddenField ID="uiHardDriveNameAndLabel" runat="server" Value='<%# DataBinder.Eval( Container.DataItem, "Drive" )%>' />
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </tbody> </table>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                    <br />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </asp:View>
                <asp:View ID="uiNetworkConnections" runat="server">
                    <%-- Networking --%>
                    <asp:Panel ID="uiPnlNetworkConnections" runat="server" GroupingText="Network Connections"
                        CssClass="label">
                        <table width="100%" height="200">
                            <tr>
                                <td style="vertical-align: top">
                                    <br />
                                    <table>
                                        <tr>
                                            <td class="label">
                                                <asp:Literal ID="uiLblNetworkConnectionsType" runat="server" Text="Type:"></asp:Literal>
                                            </td>
                                            <td></td>
                                            <td class="style22">
                                                <asp:DropDownList ID="uiValNetworkConnectionsType" runat="server" AutoPostBack="true"
                                                    OnTextChanged="uiValNetworkConnectionsType_TextChanged" Width="154px" 
                                                    Height="19px">
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                            <table>
                                        <tr>
                                            <td>
                                                <asp:Literal ID="uiLblNetworkConnectionTypeOther" runat="server" Text="&nbsp;&nbsp;Description : "></asp:Literal>
                                            </td>
                                            <td style="width:2px; color:Red; vertical-align:top;">
                                <asp:Label ID="uiNetworkConnectionDescriptionFlag" runat="server" Font-Size="Small" Text="*"></asp:Label>
                            </td>
                                            <td>
                                                <asp:TextBox ID="uiValNetworkConnectionTypeOther" runat="server" Width="110px"></asp:TextBox>
                                            </td>
                                            <td class="style11">
                                                &nbsp;<asp:Label ID="uiNetworkConnectionOtherDescriptionMsg" runat="server" Font-Size="Smaller"></asp:Label></td>
                                        </tr>
                                    </table>
                                            </td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td class="label">
                                                <asp:Literal ID="uiLblNetworkConnectionsNumber" runat="server" Text="Number:"></asp:Literal>
                                            </td>
                                            <td style=" width:2px"></td>
                                            <td class="style22">
                                                <asp:DropDownList ID="uiValNetworkConnectionsNumber" runat="server" Width="154px"
                                                    AutoPostBack="true" 
                                                    OnTextChanged="uiValNetworkConnectionsNumber_TextChanged" Height="19px">
                                                </asp:DropDownList>
                                            </td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                        <td valign="top">
                                        <asp:Literal ID="uiLitReasonNc" runat="server" Text="Reason:"></asp:Literal>
                                        </td>
                                        <td>
                                        </td>
                                        <td colspan="2">
                                        <asp:TextBox ID="uiTbReasonNc" runat="server" TextMode="MultiLine" Rows="4"
                                        Height="75px" Style="margin-top: 0px" Width="100%" />
                                        </td>
                                    <td class="style28">
                                                &nbsp;<asp:Label ID="uiNcReasonErrorMsg" runat="server" Font-Size="Smaller"></asp:Label></td>
                                        </tr>
                                        </table>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </asp:View>
                <asp:View runat="server" ID="uiDisasterRecovery">
                    <%-- Disaster Recovery --%>
                    <asp:Panel ID="uiPnlDisasterRecovery" runat="server" GroupingText="Disaster Recovery"
                        CssClass="label">
                        <table width="100%" height="200">
                            <tr>
                                <td style="vertical-align: top">
                                    <br />
                                    <table>
                                        <tr>
                                            <td class="label">
                                                <asp:CheckBox ID="uiValDisasterRecoveryRequested" runat="server" Text="Requested?"
                                                    TextAlign="Left" 
                                                    oncheckedchanged="uiValDisasterRecoveryRequested_CheckedChanged" AutoPostBack="true" />
                                            </td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td class="label">
                                                <asp:Literal ID="uiLblDisasterRecoveryReplicationType" runat="server" Text="Replication Type:"></asp:Literal>
                                            </td>
                                            <td></td>
                                            <td>
                                                <asp:DropDownList ID="uiValDisasterRecoveryReplicationType" runat="server" AutoPostBack="true"
                                                    OnTextChanged="uiValDisasterRecoveryReplicationType_TextChanged" 
                                                    Width="130px">
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                            <table>
                                            <tr>
                                                            <td align="right">
                                                                <asp:Literal ID="uiLblDisasterRecoveryReplicationTypeOther" runat="server" Text="&nbsp;&nbsp;Description : "></asp:Literal>
                                                            </td>
                                                            <td style="width:2px; color:Red; vertical-align:top;">
                                <asp:Label ID="uiDisasterRecoveryFlag" runat="server" Font-Size="Small" Text="*"></asp:Label>
                            </td>
                                                            <td>
                                                                <asp:TextBox ID="uiValDisasterRecoveryReplicationTypeOther" runat="server" 
                                                                    Width="122px"></asp:TextBox>
                                                            </td>
                                                            <td class="style11">
                                                &nbsp;<asp:Label ID="uiDisasterRecoveryDscMsg" runat="server" Font-Size="Smaller"></asp:Label></td>
                                                        </tr>
                                            </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </asp:View>
                <asp:View runat="server" ID="uiServerRoles">
                    <%-- Server roles --%>
                    <asp:Panel ID="uiPnlServerRoles" runat="server" GroupingText="Server Roles" CssClass="label">
                        <table width="100%" height="200">
                            <tr>
                                <td style="vertical-align: top">
                                                <div id="uiDivSeverRoles" style="overflow-y: scroll; height: 200px; width: 100%;">
                                    <asp:Repeater ID="uiServerRolesRepeater" runat="server" OnItemDataBound="uiServerRoles_ItemDataBound">
                                    <HeaderTemplate>
                                        <table border="0" cellpadding="2" cellspacing="0" style="width: 100%">
                                        <thead>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                    </HeaderTemplate>
                                     <ItemTemplate>
                                        <tr style="vertical-align:top">
                                        <td style="vertical-align:top">
                                            <asp:Label ID="uiLblServerRole" runat="server" Text='<%# DataBinder.Eval( Container.DataItem, "Role" )%>'></asp:Label><asp:CheckBox ID="uiServerRoles" runat="server" Text='<%# DataBinder.Eval( Container.DataItem, "Role" )%>'></asp:CheckBox>
                                        <table><tr><td>
                                            <asp:Label ID="uiSpacing" runat="server"></asp:Label></td><td><asp:CheckBoxList ID="uiSubRoles" runat="server">
                                            </asp:CheckBoxList></td></tr></table>
                                        </td>
                                        <td>
                                        <asp:HiddenField ID="uiHiddenFieldSubRolesString" runat="server" Value='<%# DataBinder.Eval( Container.DataItem, "SubRolesAsString" )%>' />
                                        </td>
                                        </tr>                   
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </tbody> </table>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </asp:View>
                <asp:View runat="server" ID="uiAccess">
                    <asp:Panel ID="uiPnlAccess" runat="server" GroupingText="Access">
                        <table width="100%" height="200">
                            <tr>
                                <td style="vertical-align: top">
                                    <table width="100%" style="height: 28px;">
                                        <tr style="vertical-align: top">
                                            <td class="style2">
                                                <span class="label">
                                                    <asp:Literal ID="Literal21" runat="server" Text="Who needs Access?"></asp:Literal>
                                                </span>
                                            </td>
                                            <td class="style3">
                                                <asp:DropDownList ID="uiUsers" runat="server" CssClass="label" AutoPostBack="true"
                                                    OnTextChanged="uiUsers_TextChanged" Style="width: 166px">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="style4">
                                                <span class="label">
                                                    <asp:Literal ID="Literal22" runat="server" Text="User Role:"></asp:Literal>
                                                </span>
                                            </td>
                                            <td class="style5">
                                                <span class="data">
                                                    <asp:DropDownList ID="uiRoles" runat="server" CssClass="label" AutoPostBack="true"
                                                        OnTextChanged="uiRoles_TextChanged" Style="width: 81px">
                                                    </asp:DropDownList>
                                                </span>
                                            </td>
                                            <td class="style7">
                                                <asp:ImageButton ID="AddUserAndRole" runat="server" ImageUrl="~/_layouts/com.stifel.ServerBuildMgmt/images/add-20.png"
                                                    OnClick="AddUserAndRole_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%">
                                        <tr>
                                            <td style="overflow-y: scroll; vertical-align: top;">
                                                <asp:Repeater ID="accessRepeater" runat="server" OnItemCommand="onItemCommanForAccess">
                                                    <HeaderTemplate>
                                                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                                                            <thead>
                                                                <tr style="background-color: #F5F6F7">
                                                                    <td>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Literal ID="litUsers" runat="server" Text="Users"></asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Literal ID="litRoles" runat="server" Text="Roles"></asp:Literal>
                                                                    </td>
                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td>
                                                                <asp:ImageButton ID="deleteButtonAccess" runat="server" ImageUrl="~/_layouts/com.stifel.ServerBuildMgmt/images/redx20x20.png"
                                                                    CommandName="Delete" CommandArgument='<%#DataBinder.Eval( Container.DataItem, "User" )%>' />
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="uiUsers" runat="server" Text='<%# DataBinder.Eval( Container.DataItem, "User" )%>'></asp:Literal>
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="uiRoles" runat="server" Text='<%# DataBinder.Eval( Container.DataItem, "Role" )%>'></asp:Literal>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        </tbody> </table>
                                                    </FooterTemplate>
                                                </asp:Repeater>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </asp:View>
                <asp:View runat="server" ID="uiBackup">
                <asp:Panel ID="uiPnlBackup" runat="server" GroupingText="Backup">
                <table width="100%" height="200"><tr valign="top"><td>
                <br />
                <table>
                <tr>
                <td colspan="1" align="left">
                                    <asp:DropDownList ID="uiDdlBackupHours" runat="server" Width="100%" 
                        onselectedindexchanged="uiDdlBackupHours_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="style11WithoutWidth" colspan="4">&nbsp;<asp:Label ID="uiLblBackupScheduleErrorMsg" runat="server" Font-Size="Smaller"></asp:Label></td>
                </tr>
                <tr>
                <td></td>
                <td align="center"><asp:Label ID="uiLblVirtual" runat="server" Text="Virtual"></asp:Label></td>
                <td align="center"><asp:Label ID="uiLblAgent" runat="server" Text="Agent"></asp:Label></td>
                <td></td>
                <td></td>
                </tr>
                <tr>
                <td><asp:Label ID="uiLblMonday" runat="server" Text="Monday"></asp:Label></td>
                <td align="center"><asp:CheckBox ID="uiCbViMo" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbAgMo" runat="server" /></td>
                <td><asp:RadioButton ID="uiRbMoIncremental" runat="server" GroupName="MondayIncrementalOrFull" Text="Incremental" Font-Size="Small" /></td>
                <td><asp:RadioButton ID="uiRbMoFull" runat="server" GroupName="MondayIncrementalOrFull" Text="Full" Font-Size="Small" /></td>
                </tr>
                <tr>
                <td><asp:Label ID="uiLblTuesday" runat="server" Text="Tuesday"></asp:Label></td>
                <td align="center"><asp:CheckBox ID="uiCbViTu" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbAgTu" runat="server" /></td>
                <td><asp:RadioButton ID="uiRbTuIncremental" runat="server" GroupName="TuesdayIncrementalOrFull" Text="Incremental" Font-Size="Small" /></td>
                <td><asp:RadioButton ID="uiRbTuFull" runat="server" GroupName="TuesdayIncrementalOrFull" Text="Full" Font-Size="Small" /></td>
                </tr>
                <tr>
                <td><asp:Label ID="uiLblWednesday" runat="server" Text="Wednesday"></asp:Label></td>
                <td align="center"><asp:CheckBox ID="uiCbViWe" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbAgWe" runat="server" /></td>
                <td><asp:RadioButton ID="uiRbWeIncremental" runat="server" GroupName="WednesdayIncrementalOrFull" Text="Incremental" Font-Size="Small" /></td>
                <td><asp:RadioButton ID="uiRbWeFull" runat="server" GroupName="WednesdayIncrementalOrFull" Text="Full" Font-Size="Small" /></td>
                </tr>
                <tr>
                <td><asp:Label ID="uiLblThursday" runat="server" Text="Thursday"></asp:Label></td>
                <td align="center"><asp:CheckBox ID="uiCbViTh" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbAgTh" runat="server" /></td>
                <td><asp:RadioButton ID="uiRbThIncremental" runat="server" GroupName="ThursdayIncrementalOrFull" Text="Incremental" Font-Size="Small" /></td>
                <td><asp:RadioButton ID="uiRbThFull" runat="server" GroupName="ThursdayIncrementalOrFull" Text="Full" Font-Size="Small" /></td>
                </tr>
                <tr>
                <td><asp:Label ID="uiLblFriday" runat="server" Text="Friday"></asp:Label></td>
                <td align="center"><asp:CheckBox ID="uiCbViFr" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbAgFr" runat="server" /></td>
                <td><asp:RadioButton ID="uiRbFrIncremental" runat="server" GroupName="FridayIncrementalOrFull" Text="Incremental" Font-Size="Small" /></td>
                <td><asp:RadioButton ID="uiRbFrFull" runat="server" GroupName="FridayIncrementalOrFull" Text="Full" Font-Size="Small" /></td>
                </tr>
                <tr>
                <td><asp:Label ID="uiLblSaturday" runat="server" Text="Saturday"></asp:Label></td>
                <td align="center"><asp:CheckBox ID="uiCbViSa" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbAgSa" runat="server" /></td>
                <td><asp:RadioButton ID="uiRbSaIncremental" runat="server" GroupName="SaturdayIncrementalOrFull" Text="Incremental" Font-Size="Small" /></td>
                <td><asp:RadioButton ID="uiRbSaFull" runat="server" GroupName="SaturdayIncrementalOrFull" Text="Full" Font-Size="Small" /></td>
                </tr>
                <tr>
                <td><asp:Label ID="uiLblSunday" runat="server" Text="Sunday"></asp:Label></td>
                <td align="center"><asp:CheckBox ID="uiCbViSu" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbAgSu" runat="server" /></td>
                <td><asp:RadioButton ID="uiRbSuIncremental" runat="server" GroupName="SundayIncrementalOrFull" Text="Incremental" Font-Size="Small" /></td>
                <td><asp:RadioButton ID="uiRbSuFull" runat="server" GroupName="SundayIncrementalOrFull" Text="Full" Font-Size="Small" /></td>
                </tr>
                </table>
                <%--<table>
                <tr>
                <td class="style25"></td>
                <td></td>
                <td align="center"><asp:Literal ID="uiLitMo" runat="server" Text="Mo"></asp:Literal></td>
                <td align="center"><asp:Literal ID="uiLitTu" runat="server" Text="Tu"></asp:Literal></td>
                <td align="center"><asp:Literal ID="uiLitWe" runat="server" Text="We"></asp:Literal></td>
                <td align="center"><asp:Literal ID="uiLitTh" runat="server" Text="Th"></asp:Literal></td>
                <td align="center"><asp:Literal ID="uiLitFr" runat="server" Text="Fr"></asp:Literal></td>
                <td align="center"><asp:Literal ID="uiLitSa" runat="server" Text="Sa"></asp:Literal></td>
                <td align="center"><asp:Literal ID="uiLitSu" runat="server" Text="Su"></asp:Literal></td>
                <td></td>
                </tr>
                <tr>
                <td align="left" class="style25">
                    <asp:DropDownList ID="uiDdlBackupHours" runat="server" Width="100%" 
                        onselectedindexchanged="uiDdlBackupHours_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td></td>
                <td align="center"><asp:CheckBox ID="uiCbDhMo" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbDhTu" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbDhWe" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbDhTh" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbDhFr" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbDhSa" runat="server" /></td>
                <td align="center"><asp:CheckBox ID="uiCbDhSu" runat="server" /></td>
                <td class="style11">&nbsp;<asp:Label ID="uiLblBackupScheduleErrorMsg" runat="server" Font-Size="Smaller"></asp:Label></td>
                </tr>
                </table>--%>
                </td></tr></table>
                </asp:Panel>
                </asp:View>
                <asp:View runat="server" ID="uiNotes">
                    <asp:Panel ID="uiPnlNotes" runat="server" GroupingText="Notes">
                        <table width="100%" height="200">
                            <tr>
                                <td>
                                    <asp:TextBox ID="uiValNotes" runat="server" TextMode="MultiLine" Rows="6" Width="99%"
                                        Height="175px" Style="margin-top: 0px" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </asp:View>
                <asp:View runat="server" ID="uiUnknown">
                    <asp:Panel ID="Panel2A" runat="server" GroupingText="Unknown Request">
                        <asp:Literal ID="Literal11" Text="Unknown area requested." runat="server" />
                    </asp:Panel>
                </asp:View>
            </asp:MultiView>
            <table width="100%">
                <tr>
                    <td class="right">
                        <asp:ImageButton ID="uiOkButton" ImageUrl="~/_layouts/com.stifel.ServerBuildMgmt/images/Accept-round.PNG"
                            runat="server" OnClick="uiOkButton_Click" />
                        <asp:ImageButton ID="uiCancelButton" ImageUrl="~/_layouts/com.stifel.ServerBuildMgmt/images/Cancel-round.PNG"
                            runat="server" OnClick="uiCancelButton_Click" />
                    </td>
                </tr>
            </table>
            <asp:Panel ID="uiSummary" runat="server" GroupingText="Summary">
                <table width="100%">
                    <tr>
                        <td>
                            <asp:PlaceHolder runat="server" ID="uiSummaryServerBasics" />
                            <asp:PlaceHolder runat="server" ID="uiSummaryHardDrives" />
                            <asp:PlaceHolder runat="server" ID="uiSummaryNetworkConnections" />
                            <asp:PlaceHolder runat="server" ID="uiSummaryDisasterRecovery" />
                            <asp:PlaceHolder runat="server" ID="uiSummaryServerRoles" />
                            <asp:PlaceHolder runat="server" ID="uiSummaryAccess" />
                            <asp:PlaceHolder runat="server" ID="uiSummaryBackup" />
                            <asp:PlaceHolder runat="server" ID="uiSummaryNotes" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>
